package com.zlc.common.core.user.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zlc.common.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zl
 * @date 2023-05-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "mayan_plat_user")
public class MayanPlatUser extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 0L;


    /**
     * 员工工号
     */
    @TableField(value = "user_id_")
    private String userId;

    /**
     * 用户账号
     */
    @TableField(value = "user_account_")
    private String userAccount;

    /**
     * 姓名
     */
    @TableField(value = "username_")
    private String username;

    /**
     * 昵称
     */
    @TableField(value = "nick_name_")
    private String nickName;

    /**
     * 密码
     */
    @TableField(value = "password_")
    private String password;

    /**
     * 手机号
     */
    @TableField(value = "mobile_")
    private String mobile;

    /**
     * 员工类型
     */
    @TableField(value = "user_type_")
    private String userType;

    /**
     * 直接上级账号
     */
    @TableField(value = "super_account_")
    private String superAccount;


    /**
     * 最高等级岗位
     */
    @TableField(value = "position_")
    private String position;


    /**
     * 所属最高部门
     */
    @TableField(value = "dept_no_")
    private String deptNo;

    /**
     * 用户状态 ON_JOB在职|OFF_JOB离职
     */
    @TableField(value = "status_")
    private String status;

    /**
     * 是否是管理员Y/N
     */
    @TableField(value = "admin_flag_")
    public String adminFlag;

    /**
     * 邮箱
     */
    @TableField(value = "email_")
    private String email;

    /**
     * 入职日期
     */
    @TableField(value = "onboarding_time_")
    private Date onboardingTime;

    /**
     * 离职日期
     */
    @TableField(value = "resignation_time_")
    private Date resignationTime;

    /**
     * 头像
     */
    @TableField(value = "img_")
    private String img;

    /**
     * 登录失败次数
     */
    @TableField(value = "error_count")
    private Integer errorCount;

    /**
     * 是否锁定
     */
    @TableField(value = "lock_flag")
    private Boolean lockFlag;

    /**
     * 上次修改密码时间
     */
    @TableField(value = "change_pass_time")
    private Date changePassTime;

    /**
     * 锁定时间
     */
    @TableField(value = "lock_time")
    private Date lockTime;
}
